import Utils from "../core/utils/Utils"

function test_compareText() {
    const strArr: string[] = [
        "0",
        "123",
        "12",
        "abc",
        "abcde",
        "av哈喽",
        "abcde你好啊",
        "是不是",
        "呃12457"
    ]

    strArr.sort((a, b): number => {
        return Utils.compareText(a, b)
    })

    console.log(strArr)
}

export function test_utils() {
    console.log("===> test_utils()")
    test_compareText()
}